Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gflags
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
gflags
Commits
23348465
Commit
23348465
authored
Oct 05, 2017
by
Sumit Gupta
Committed by
Andreas Schuh
Oct 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused functions.
parent
60784b53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
gflags.cc
src/gflags.cc
+0
-23
No files found.
src/gflags.cc
View file @
23348465
...
...
@@ -225,7 +225,6 @@ class FlagValue {
bool
Equal
(
const
FlagValue
&
x
)
const
;
FlagValue
*
New
()
const
;
// creates a new one with default value
void
CopyFrom
(
const
FlagValue
&
x
);
int
ValueSize
()
const
;
// Calls the given validate-fn on value_buffer_, and returns
// whatever it returns. But first casts validate_fn_proto to a
...
...
@@ -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
// This represents a single flag, including its name, description,
...
...
@@ -960,7 +942,6 @@ class CommandLineFlagParser {
// Stage 3: validate all the commandline flags that have validators
// registered and were not set/modified by ParseNewCommandLineFlags.
void
ValidateFlags
(
bool
all
);
void
ValidateAllFlags
();
void
ValidateUnmodifiedFlags
();
// Stage 4: report any errors and return true if any were found.
...
...
@@ -1245,10 +1226,6 @@ void CommandLineFlagParser::ValidateFlags(bool all) {
}
}
void
CommandLineFlagParser
::
ValidateAllFlags
()
{
ValidateFlags
(
true
);
}
void
CommandLineFlagParser
::
ValidateUnmodifiedFlags
()
{
ValidateFlags
(
false
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment