Commit 23348465 authored by Sumit Gupta's avatar Sumit Gupta Committed by Andreas Schuh

Removed unused functions.

parent 60784b53
...@@ -225,7 +225,6 @@ class FlagValue { ...@@ -225,7 +225,6 @@ class FlagValue {
bool Equal(const FlagValue& x) const; bool Equal(const FlagValue& x) const;
FlagValue* New() const; // creates a new one with default value FlagValue* New() const; // creates a new one with default value
void CopyFrom(const FlagValue& x); void CopyFrom(const FlagValue& x);
int ValueSize() const;
// Calls the given validate-fn on value_buffer_, and returns // Calls the given validate-fn on value_buffer_, and returns
// whatever it returns. But first casts validate_fn_proto to a // whatever it returns. But first casts validate_fn_proto to a
...@@ -485,23 +484,6 @@ void FlagValue::CopyFrom(const FlagValue& x) { ...@@ -485,23 +484,6 @@ void FlagValue::CopyFrom(const FlagValue& x) {
} }
} }
int FlagValue::ValueSize() const {
if (type_ > FV_MAX_INDEX) {
assert(false); // unknown type
return 0;
}
static const uint8 valuesize[] = {
sizeof(bool),
sizeof(int32),
sizeof(uint32),
sizeof(int64),
sizeof(uint64),
sizeof(double),
sizeof(string),
};
return valuesize[type_];
}
// -------------------------------------------------------------------- // --------------------------------------------------------------------
// CommandLineFlag // CommandLineFlag
// This represents a single flag, including its name, description, // This represents a single flag, including its name, description,
...@@ -960,7 +942,6 @@ class CommandLineFlagParser { ...@@ -960,7 +942,6 @@ class CommandLineFlagParser {
// Stage 3: validate all the commandline flags that have validators // Stage 3: validate all the commandline flags that have validators
// registered and were not set/modified by ParseNewCommandLineFlags. // registered and were not set/modified by ParseNewCommandLineFlags.
void ValidateFlags(bool all); void ValidateFlags(bool all);
void ValidateAllFlags();
void ValidateUnmodifiedFlags(); void ValidateUnmodifiedFlags();
// Stage 4: report any errors and return true if any were found. // Stage 4: report any errors and return true if any were found.
...@@ -1245,10 +1226,6 @@ void CommandLineFlagParser::ValidateFlags(bool all) { ...@@ -1245,10 +1226,6 @@ void CommandLineFlagParser::ValidateFlags(bool all) {
} }
} }
void CommandLineFlagParser::ValidateAllFlags() {
ValidateFlags(true);
}
void CommandLineFlagParser::ValidateUnmodifiedFlags() { void CommandLineFlagParser::ValidateUnmodifiedFlags() {
ValidateFlags(false); ValidateFlags(false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment