@@ -810,120 +810,11 @@ * @brief Returns the OFNumber as a double. * * @return The OFNumber as a double */ - (double)doubleValue; - -/*! - * @brief Creates a new OFNumber by adding the specified number. - * - * @param num The OFNumber to add - * @return A new autoreleased OFNumber added with the specified OFNumber - */ -- (OFNumber*)numberByAddingNumber: (OFNumber*)num; - -/*! - * @brief Creates a new OFNumber by subtracting the specified number. - * - * @param num The OFNumber to substract - * @return A new autoreleased OFNumber subtracted by the specified OFNumber - */ -- (OFNumber*)numberBySubtractingNumber: (OFNumber*)num; - -/*! - * @brief Creates a new OFNumber by multiplying with the specified number. - * - * @param num The OFNumber to multiply with - * @return A new autoreleased OFNumber multiplied with the specified OFNumber - */ -- (OFNumber*)numberByMultiplyingWithNumber: (OFNumber*)num; - -/*! - * @brief Creates a new OFNumber by dividing with with the specified number. - * - * @param num The OFNumber to divide by - * @return A new autoreleased OFNumber devided by the specified OFNumber - */ -- (OFNumber*)numberByDividingWithNumber: (OFNumber*)num; - -/*! - * @brief Creates a new OFNumber by ANDing with the specified number. - * - * Does not work with floating point types! - * - * @param num The number to AND with. - * @return A new autoreleased OFNumber ANDed with the specified OFNumber - */ -- (OFNumber*)numberByANDingWithNumber: (OFNumber*)num; - -/*! - * @brief Creates a new OFNumber by ORing with the specified number. - * - * Does not work with floating point types! - * - * @param num The number to OR with. - * @return A new autoreleased OFNumber ORed with the specified OFNumber - */ -- (OFNumber*)numberByORingWithNumber: (OFNumber*)num; - -/*! - * @brief Creates a new OFNumber by XORing with the specified number. - * - * Does not work with floating point types! - * - * @param num The number to XOR with. - * @return A new autoreleased OFNumber XORed with the specified OFNumber - */ -- (OFNumber*)numberByXORingWithNumber: (OFNumber*)num; - -/*! - * @brief Creates a new OFNumber by shifting to the left by the specified number - * of bits. - * - * Does not work with floating point types! - * - * @param num The number of bits to shift to the left - * @return A new autoreleased OFNumber bitshifted to the left with the - * specified OFNumber - */ -- (OFNumber*)numberByShiftingLeftWithNumber: (OFNumber*)num; - -/*! - * @brief Creates a new OFNumber by shifting to the right by the specified - * number of bits. - * - * Does not work with floating point types! - * - * @param num The number of bits to shift to the right - * @return A new autoreleased OFNumber bitshifted to the right with the - * specified OFNumber - */ -- (OFNumber*)numberByShiftingRightWithNumber: (OFNumber*)num; - -/*! - * @brief Creates a new OFNumber by with the same value increased by one. - * - * @return A new autoreleased OFNumber with the value increased by one. - */ -- (OFNumber*)numberByIncreasing; - -/*! - * @brief Creates a new OFNumber by with the same value decreased by one. - * - * @return A new autoreleased OFNumber with the value decreased by one. - */ -- (OFNumber*)numberByDecreasing; - -/*! - * @brief Creates a new OFNumber with the remainder of a division with the - * specified number. - * - * @param num The number to divide by - * @return The remainder of a division by the specified number - */ -- (OFNumber*)remainderOfDivisionWithNumber: (OFNumber*)num; @end #ifndef NSINTEGER_DEFINED /* Required for number literals to work */ @compatibility_alias NSNumber OFNumber; #endif