summaryrefslogtreecommitdiff
path: root/src/gflags.cc
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers+gflags@google.com>2011-11-03 23:12:52 +0000
committerCraig Silverstein <csilvers+gflags@google.com>2011-11-03 23:12:52 +0000
commit9bf7e65f08acde10aa530d137ce6995dac5f65c5 (patch)
treec7650e13d0f548b87872031a41cad70ea97bcbe2 /src/gflags.cc
parent6b70a750812f46d4972f0eb4517670893e3b3e55 (diff)
downloadgflags-9bf7e65f08acde10aa530d137ce6995dac5f65c5.tar.gz
gflags-9bf7e65f08acde10aa530d137ce6995dac5f65c5.tar.bz2
gflags-9bf7e65f08acde10aa530d137ce6995dac5f65c5.zip
Now I can get rid of the old constructor!
R=jkline,ncalvin DELTA=28 (0 added, 27 deleted, 1 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=3169 git-svn-id: https://gflags.googlecode.com/svn/trunk@65 6586e3c6-dcc4-952a-343f-ff74eb82781d
Diffstat (limited to 'src/gflags.cc')
-rw-r--r--src/gflags.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gflags.cc b/src/gflags.cc
index a136fde..9b4d66c 100644
--- a/src/gflags.cc
+++ b/src/gflags.cc
@@ -1422,25 +1422,6 @@ FlagRegisterer::FlagRegisterer(const char* name, const char* type,
FlagRegistry::GlobalRegistry()->RegisterFlag(flag); // default registry
}
-// TODO(csilvers): remove this by 1 Sept 2011.
-FlagRegisterer::FlagRegisterer(const char* name, const char* type,
- const char* help, const char* filename,
- void* current_storage, void* defvalue_storage) {
- if (help == NULL)
- help = "";
- // FlagValue expects the type-name to not include any namespace
- // components, so we get rid of those, if any.
- if (strchr(type, ':'))
- type = strrchr(type, ':') + 1;
- FlagValue* current = new FlagValue(current_storage, type, false);
- FlagValue* defvalue = new FlagValue(defvalue_storage, type, false);
- // Importantly, flag_ will never be deleted, so storage is always good.
- CommandLineFlag* flag = new CommandLineFlag(name, help, filename,
- NULL, current, defvalue);
- FlagRegistry::GlobalRegistry()->RegisterFlag(flag); // default registry
-}
-
-
// --------------------------------------------------------------------
// GetAllFlags()
// The main way the FlagRegistry class exposes its data. This