ICU-3437 remove unused functions

X-SVN-Rev: 14147
This commit is contained in:
Markus Scherer 2003-12-16 22:28:42 +00:00
parent 153d089d5e
commit 9fc2199422
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2001, International Business Machines Corporation and
* Copyright (c) 1997-2003, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/* file name: sfwdchit.cpp
@ -21,6 +21,7 @@
const int32_t SimpleFwdCharIterator::kInvalidHashCode = 0;
const int32_t SimpleFwdCharIterator::kEmptyHashCode = 1;
#if 0 // not used
SimpleFwdCharIterator::SimpleFwdCharIterator(const UnicodeString& s) {
fHashCode = kInvalidHashCode;
@ -36,6 +37,7 @@ SimpleFwdCharIterator::SimpleFwdCharIterator(const UnicodeString& s) {
}
}
#endif
SimpleFwdCharIterator::SimpleFwdCharIterator(UChar *s, int32_t len, UBool adopt) {
@ -65,6 +67,7 @@ SimpleFwdCharIterator::~SimpleFwdCharIterator() {
delete[] fStart;
}
#if 0 // not used
UBool SimpleFwdCharIterator::operator==(const ForwardCharacterIterator& that) const {
if(this == &that) {
return TRUE;
@ -84,7 +87,8 @@ UBool SimpleFwdCharIterator::operator==(const ForwardCharacterIterator& that) co
*/
return FALSE;
}
#endif
int32_t SimpleFwdCharIterator::hashCode(void) const {
if (fHashCode == kInvalidHashCode)
{

View File

@ -1,6 +1,6 @@
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2001, International Business Machines Corporation and
* Copyright (c) 1997-2003, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
@ -12,7 +12,7 @@
class SimpleFwdCharIterator : public ForwardCharacterIterator {
public:
SimpleFwdCharIterator(const UnicodeString& s);
// not used -- SimpleFwdCharIterator(const UnicodeString& s);
SimpleFwdCharIterator(UChar *s, int32_t len, UBool adopt = FALSE);
virtual ~SimpleFwdCharIterator();
@ -21,7 +21,7 @@ public:
* Returns true when both iterators refer to the same
* character in the same character-storage object.
*/
virtual UBool operator==(const ForwardCharacterIterator& that) const;
// not used -- virtual UBool operator==(const ForwardCharacterIterator& that) const;
/**
* Generates a hash code for this iterator.