]> granicus.if.org Git - icu/commitdiff
ICU-22054 Remove declarations for unimplemented APIs
authorCyndy Ishida <cyndy_ishida@apple.com>
Mon, 6 Jun 2022 23:18:50 +0000 (16:18 -0700)
committerCyndy Ishida <cyndy_ishida@apple.com>
Fri, 1 Jul 2022 15:57:10 +0000 (08:57 -0700)
This patch also includes marking `=delete` on specific `normal` member functions, as opposed to compiler generated functions,
based on the description of such functions' surrounding comments.

16 files changed:
icu4c/source/common/unicode/rbbi.h
icu4c/source/common/unicode/schriter.h
icu4c/source/common/unicode/uniset.h
icu4c/source/i18n/hebrwcal.h
icu4c/source/i18n/regexcmp.h
icu4c/source/i18n/unicode/calendar.h
icu4c/source/i18n/unicode/dtptngen.h
icu4c/source/i18n/unicode/gregocal.h
icu4c/source/i18n/unicode/listformatter.h
icu4c/source/i18n/unicode/msgfmt.h
icu4c/source/i18n/unicode/numberrangeformatter.h
icu4c/source/i18n/unicode/numsys.h
icu4c/source/i18n/unicode/plurrule.h
icu4c/source/i18n/unicode/regex.h
icu4c/source/i18n/unicode/tzrule.h
icu4c/source/i18n/unicode/vtzone.h

index 0bad0d3897cc48fe6ddd573f70fc21c157651cc1..d878243e3fe24797a0d8b9fc993a5573af4ba7f7 100644 (file)
@@ -648,13 +648,6 @@ private:
     //=======================================================================
     // implementation
     //=======================================================================
-    /**
-     * Dumps caches and performs other actions associated with a complete change
-     * in text or iteration position.
-     * @internal (private)
-     */
-    void reset(void);
-
     /**
       * Common initialization function, used by constructors and bufferClone.
       * @internal (private)
index 9dac099967795b65529b5236e70ffc3beab50438..a2ab17982d10106cb5d131f037f8f2e0f059fb3b 100644 (file)
@@ -172,14 +172,6 @@ protected:
    */
   StringCharacterIterator();
 
-  /**
-   * Sets the iterator to iterate over the provided string.
-   * @param newText The string to be iterated over
-   * @param newTextLength The length of the String
-   * @stable ICU 2.0
-   */
-  void setText(const char16_t* newText, int32_t newTextLength);
-
   /**
    * Copy of the iterated string object.
    * @stable ICU 2.0
index 310c7c8d2011cdaf401c300ca282ee60c76c12e1..0c29b67cf42e84551fba031ce5c9dc467da32424 100644 (file)
@@ -1678,8 +1678,6 @@ private:
                               UnicodeString& rebuiltPat,
                               UErrorCode& ec);
 
-    static const UnicodeSet* getInclusions(int32_t src, UErrorCode &status);
-
     /**
      * A filter that returns true if the given code point should be
      * included in the UnicodeSet being constructed.
@@ -1700,11 +1698,6 @@ private:
                      const UnicodeSet* inclusions,
                      UErrorCode &status);
 
-    // UCPMap is now stable ICU 63
-    void applyIntPropertyValue(const UCPMap *map,
-                               UCPMapValueFilter *filter, const void *context,
-                               UErrorCode &errorCode);
-
     /**
      * Set the new pattern to cache.
      */
index ae4401832d46796f5eee540c98cb7027628c9a41..7690abf66d2b877c366185cf41358fb8ed963af9 100644 (file)
@@ -180,13 +180,6 @@ public:
      */
     HebrewCalendar(const HebrewCalendar& source);
 
-    /**
-     * Default assignment operator
-     * @param right    the object to be copied.
-     * @internal
-     */
-    HebrewCalendar& operator=(const HebrewCalendar& right);
-
     /**
      * Create and return a polymorphic copy of this calendar.
      * @return    return a polymorphic copy of this calendar.
index 9e1aa170f08689b22a02f0f7813987b8660aa692..81ac9e5178439808330d49d8cb72bd9a368757ad 100644 (file)
@@ -37,7 +37,6 @@ U_NAMESPACE_BEGIN
 //  class RegexCompile    Contains the regular expression compiler.
 //
 //--------------------------------------------------------------------------------
-struct  RegexTableEl;
 class   RegexPattern;
 
 
@@ -65,9 +64,6 @@ public:
 
     void        nextChar(RegexPatternChar &c);      // Get the next char from the input stream.
 
-    static void cleanup();                       // Memory cleanup
-
-
 
     // Categories of parentheses in pattern.
     //   The category is saved in the compile-time parentheses stack frame, and
@@ -154,12 +150,6 @@ private:
     RegexPatternChar              fC;                // Current char for parse state machine
                                                      //   processing.
 
-    //
-    //   Data for the state machine that parses the regular expression.
-    //
-    RegexTableEl                  **fStateTable;     // State Transition Table for regex Rule
-                                                     //   parsing.  index by p[state][char-class]
-
     uint16_t                      fStack[kStackSize];  // State stack, holds state pushes
     int32_t                       fStackPtr;           //  and pops as specified in the state
                                                        //  transition rules.
@@ -211,10 +201,6 @@ private:
                                                      //   -1 for the upper interval value means none
                                                      //   was specified (unlimited occurrences.)
 
-    int64_t                       fNameStartPos;     // Starting position of a \N{NAME} name in a
-                                                     //   pattern, valid while remainder of name is
-                                                     //   scanned.
-
     UStack                        fSetStack;         // Stack of UnicodeSets, used while evaluating
                                                      //   (at compile time) set expressions within
                                                      //   the pattern.
index ddffc7b9a1a3e48e738a2a82e64abfb4301749fb..3c0e5c3e3e064ad0da910226ccd0024f2cc0f35c 100644 (file)
@@ -962,16 +962,6 @@ public:
      */
     UCalendarWallTimeOption getSkippedWallTimeOption(void) const;
 
-#ifndef U_HIDE_DEPRECATED_API
-    /**
-     * Sets what the first day of the week is; e.g., Sunday in US, Monday in France.
-     *
-     * @param value  The given first day of the week.
-     * @deprecated ICU 2.6. Use setFirstDayOfWeek(UCalendarDaysOfWeek value) instead.
-     */
-    void setFirstDayOfWeek(EDaysOfWeek value);
-#endif  /* U_HIDE_DEPRECATED_API */
-
     /**
      * Sets what the first day of the week is; e.g., Sunday in US, Monday in France.
      *
@@ -1143,26 +1133,6 @@ public:
      */
     virtual int32_t getActualMinimum(UCalendarDateFields field, UErrorCode& status) const;
 
-#ifndef U_HIDE_DEPRECATED_API
-    /**
-     * Return the maximum value that this field could have, given the current date.
-     * For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
-     * maximum would be 28; for "Feb 3, 1996" it s 29.  Similarly for a Hebrew calendar,
-     * for some years the actual maximum for MONTH is 12, and for others 13.
-     *
-     * The version of this function on Calendar uses an iterative algorithm to determine the
-     * actual maximum value for the field.  There is almost always a more efficient way to
-     * accomplish this (in most cases, you can simply return getMaximum()).  GregorianCalendar
-     * overrides this function with a more efficient implementation.
-     *
-     * @param field    the field to determine the maximum of
-     * @param status   Fill-in parameter which receives the status of this operation.
-     * @return         the maximum of the given field for the current date of this Calendar
-     * @deprecated ICU 2.6. Use getActualMaximum(UCalendarDateFields field, UErrorCode& status) instead.
-     */
-    int32_t getActualMaximum(EDateFields field, UErrorCode& status) const;
-#endif  /* U_HIDE_DEPRECATED_API */
-
     /**
      * Return the maximum value that this field could have, given the current date.
      * For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
@@ -1181,23 +1151,6 @@ public:
      */
     virtual int32_t getActualMaximum(UCalendarDateFields field, UErrorCode& status) const;
 
-#ifndef U_HIDE_DEPRECATED_API
-    /**
-     * Gets the value for a given time field. Recalculate the current time field values
-     * if the time value has been changed by a call to setTime(). Return zero for unset
-     * fields if any fields have been explicitly set by a call to set(). To force a
-     * recomputation of all fields regardless of the previous state, call complete().
-     * This method is semantically const, but may alter the object in memory.
-     *
-     * @param field  The given time field.
-     * @param status Fill-in parameter which receives the status of the operation.
-     * @return       The value for the given time field, or zero if the field is unset,
-     *               and set() has been called for any other field.
-     * @deprecated ICU 2.6. Use get(UCalendarDateFields field, UErrorCode& status) instead.
-     */
-    int32_t get(EDateFields field, UErrorCode& status) const;
-#endif  /* U_HIDE_DEPRECATED_API */
-
     /**
      * Gets the value for a given time field. Recalculate the current time field values
      * if the time value has been changed by a call to setTime(). Return zero for unset
@@ -1213,18 +1166,6 @@ public:
      */
     int32_t get(UCalendarDateFields field, UErrorCode& status) const;
 
-#ifndef U_HIDE_DEPRECATED_API
-    /**
-     * Determines if the given time field has a value set. This can affect in the
-     * resolving of time in Calendar. Unset fields have a value of zero, by definition.
-     *
-     * @param field  The given time field.
-     * @return   True if the given time field has a value set; false otherwise.
-     * @deprecated ICU 2.6. Use isSet(UCalendarDateFields field) instead.
-     */
-    UBool isSet(EDateFields field) const;
-#endif  /* U_HIDE_DEPRECATED_API */
-
     /**
      * Determines if the given time field has a value set. This can affect in the
      * resolving of time in Calendar. Unset fields have a value of zero, by definition.
@@ -1235,17 +1176,6 @@ public:
      */
     UBool isSet(UCalendarDateFields field) const;
 
-#ifndef U_HIDE_DEPRECATED_API
-    /**
-     * Sets the given time field with the given value.
-     *
-     * @param field  The given time field.
-     * @param value  The value to be set for the given time field.
-     * @deprecated ICU 2.6. Use set(UCalendarDateFields field, int32_t value) instead.
-     */
-    void set(EDateFields field, int32_t value);
-#endif  /* U_HIDE_DEPRECATED_API */
-
     /**
      * Sets the given time field with the given value.
      *
@@ -1304,18 +1234,6 @@ public:
      */
     void clear(void);
 
-#ifndef U_HIDE_DEPRECATED_API
-    /**
-     * Clears the value in the given time field, both making it unset and assigning it a
-     * value of zero. This field value will be determined during the next resolving of
-     * time into time fields.
-     *
-     * @param field  The time field to be cleared.
-     * @deprecated ICU 2.6. Use clear(UCalendarDateFields field) instead.
-     */
-    void clear(EDateFields field);
-#endif  /* U_HIDE_DEPRECATED_API */
-
     /**
      * Clears the value in the given time field, both making it unset and assigning it a
      * value of zero. This field value will be determined during the next resolving of
index 6be0e2a571c7bbab83d5881f1401e579832ebae9..e70d1923c98293888b2f351f89a20b153dbec9d6 100644 (file)
@@ -83,13 +83,6 @@ public:
      */
     static DateTimePatternGenerator* U_EXPORT2 createInstanceNoStdPat(const Locale& uLocale, UErrorCode& status);
 
-    /**
-     * For ICU use only
-     *
-     * @internal
-     */
-    static DateTimePatternGenerator* U_EXPORT2 internalMakeInstance(const Locale& uLocale, UErrorCode& status);
-
 #endif /* U_HIDE_INTERNAL_API */
 
     /**
index 91b68bb2f50e0766051259090677650d452610e3..d97b33b7aca91c121050f8a9a8c405f42f1bafa5 100644 (file)
@@ -411,19 +411,6 @@ public:
      */
     int32_t getActualMinimum(UCalendarDateFields field, UErrorCode &status) const override;
 
-#ifndef U_HIDE_DEPRECATED_API
-    /**
-     * Return the maximum value that this field could have, given the current date.
-     * For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
-     * maximum would be 28; for "Feb 3, 1996" it s 29.  Similarly for a Hebrew calendar,
-     * for some years the actual maximum for MONTH is 12, and for others 13.
-     * @param field    the time field.
-     * @return         the maximum value that this field could have, given the current date.
-     * @deprecated ICU 2.6. Use getActualMaximum(UCalendarDateFields field) instead.
-     */
-    int32_t getActualMaximum(EDateFields field) const;
-#endif  /* U_HIDE_DEPRECATED_API */
-
     /**
      * Return the maximum value that this field could have, given the current date.
      * For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
@@ -715,12 +702,6 @@ public:
      */
     int32_t fGregorianCutoverYear;// = 1582;
 
-    /**
-     * The year of the gregorianCutover, with 0 representing
-     * 1 BC, -1 representing 2 BC, etc.
-     */
-    int32_t fGregorianCutoverJulianDay;// = 2299161;
-
     /**
      * Converts time as milliseconds to Julian date. The Julian date used here is not a
      * true Julian date, since it is measured from midnight, not noon.
index 9ce0427640e4e09f3c1daee1686c50fda18709f9..af94a9f2319dc6e5ff940cac0c139f0477dfc16c 100644 (file)
@@ -271,10 +271,6 @@ class U_I18N_API ListFormatter : public UObject{
     struct ListPatternsSink;
     static ListFormatInternal* loadListFormatInternal(const Locale& locale, const char* style, UErrorCode& errorCode);
 
-    UnicodeString& format_(
-        const UnicodeString items[], int32_t n_items, UnicodeString& appendTo,
-        int32_t index, int32_t &offset, FieldPositionHandler* handler, UErrorCode& errorCode) const;
-
     ListFormatter() = delete;
 
     ListFormatInternal* owned;
index c27b2ebf5234ec028c8132b8081b60569ee0b080..76e1ab788e22e12219f75384dc5ef994c61ccca1 100644 (file)
@@ -1011,8 +1011,6 @@ private:
 
     void cacheExplicitFormats(UErrorCode& status);
 
-    int32_t skipLeadingSpaces(UnicodeString& style);
-
     Format* createAppropriateFormat(UnicodeString& type,
                                     UnicodeString& style,
                                     Formattable::Type& formattableType,
index 363f7d48cfe169c139d5c1f32403896000f9ca6e..be0f4db0ce2734cb1191ede4e379c92382ce271a 100644 (file)
@@ -560,8 +560,6 @@ class U_I18N_API LocalizedNumberRangeFormatter
 
     LocalizedNumberRangeFormatter(impl::RangeMacroProps &&macros, const Locale &locale);
 
-    void clear();
-
     // To give the fluent setters access to this class's constructor:
     friend class NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>;
     friend class NumberRangeFormatterSettings<LocalizedNumberRangeFormatter>;
@@ -696,8 +694,6 @@ class U_I18N_API FormattedNumberRange : public UMemory, public FormattedValue {
     explicit FormattedNumberRange(UErrorCode errorCode)
         : fData(nullptr), fErrorCode(errorCode) {}
 
-    void getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih, UErrorCode& status) const;
-
     void getDecimalNumbers(ByteSink& sink1, ByteSink& sink2, UErrorCode& status) const;
 
     const impl::UFormattedNumberRangeData* getData(UErrorCode& status) const;
index 4f839d0f354effe21d5f7ce9285e18718d719951..358dc533a51848593995540e5410e2e41cb336c6 100644 (file)
@@ -208,10 +208,6 @@ private:
     void setDesc(const UnicodeString &desc);
 
     void setName(const char* name);
-
-    static UBool isValidDigitString(const UnicodeString &str);
-
-    UBool hasContiguousDecimalDigits() const;
 };
 
 U_NAMESPACE_END
index b8d1b051e98bb528272d1236a92748612739dd18..e3822dd829e6fed6bc39dcea817d05a0d9f1c93d 100644 (file)
@@ -306,14 +306,6 @@ public:
      */
     static StringEnumeration* U_EXPORT2 getAvailableLocales(UErrorCode &status);
 
-    /**
-     * Returns whether or not there are overrides.
-     * @param locale       the locale to check.
-     * @return
-     * @internal
-     */
-    static UBool hasOverride(const Locale &locale);
-
     /**
      * For ICU use only.
      * creates a  SharedPluralRules object
@@ -570,8 +562,6 @@ private:
     StandardPluralRanges *mStandardPluralRanges;
 
     PluralRules() = delete;   // default constructor not implemented
-    void            parseDescription(const UnicodeString& ruleData, UErrorCode &status);
-    int32_t         getNumberValue(const UnicodeString& token) const;
     UnicodeString   getRuleFromResource(const Locale& locale, UPluralType type, UErrorCode& status);
     RuleChain      *rulesForKeyword(const UnicodeString &keyword) const;
     PluralRules    *clone(UErrorCode& status) const;
index 7337689a54b83f3e2ae7ac3d867d6de97b3ea48c..616ca8f36fd7f85b25dac15416fb70ee214066e9 100644 (file)
@@ -361,7 +361,7 @@ private:
      *
      */
     RegexMatcher *matcher(const char16_t *input,
-        UErrorCode          &status) const;
+        UErrorCode          &status) const = delete;
 public:
 
 
@@ -749,7 +749,7 @@ private:
      * `utext_openUChars(UText *ut, const char16_t *text, int64_t textLength, UErrorCode *status);`
      */
     RegexMatcher(const UnicodeString &regexp, const char16_t *input,
-        uint32_t flags, UErrorCode &status);
+        uint32_t flags, UErrorCode &status) = delete;
 public:
 
 
@@ -1157,7 +1157,7 @@ private:
      * `utext_openUChars(UText *ut, const char16_t *text, int64_t textLength, UErrorCode *status);`
      *
      */
-    RegexMatcher &reset(const char16_t *input);
+    RegexMatcher &reset(const char16_t *input) = delete;
 public:
 
    /**
index ab0b97b6fd26fe7eb56574ba87ac0f5dada7b276..9ec1e96179c9f49f41ac1b1caf39795eb3471014 100644 (file)
@@ -258,20 +258,6 @@ public:
      */
     virtual bool operator!=(const TimeZoneRule& that) const override;
 
-    /**
-     * Gets the time when this rule takes effect in the given year.
-     * @param year              The Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
-     * @param prevRawOffset     The standard time offset from UTC before this rule
-     *                          takes effect in milliseconds.
-     * @param prevDSTSavings    The amount of daylight saving offset from the
-     *                          standard time.
-     * @param result            Receives the start time in the year.
-     * @return  true if this rule takes effect in the year and the result is set to
-     *          "result".
-     * @stable ICU 3.8
-     */
-    UBool getStartInYear(int32_t year, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const;
-
     /**
      * Returns if this rule represents the same rule and offsets as another.
      * When two <code>TimeZoneRule</code> objects differ only its names, this method
index ecf335bbe3428c9ef68e1edf74279876028fb1c7..487810dd5aea6a248da5992d49d0002000afaa0f 100644 (file)
@@ -382,7 +382,6 @@ private:
      * Default constructor.
      */
     VTimeZone();
-    static VTimeZone* createVTimeZone(VTZReader* reader);
     void write(VTZWriter& writer, UErrorCode& status) const;
     void write(UDate start, VTZWriter& writer, UErrorCode& status) const;
     void writeSimple(UDate time, VTZWriter& writer, UErrorCode& status) const;