Remove unused functions
This commit is contained in:
parent
7b79af5413
commit
d4d3854910
3
Msg3.cpp
3
Msg3.cpp
@ -8,8 +8,6 @@
|
||||
|
||||
static void doneScanningWrapper ( void *state ) ;
|
||||
|
||||
//bool mainShutdown ( bool urgent );
|
||||
|
||||
int32_t g_numIOErrors = 0;
|
||||
|
||||
Msg3::Msg3() {
|
||||
@ -1203,7 +1201,6 @@ void Msg3::setPageRanges ( RdbBase *base ,
|
||||
g_merge2.m_isMerging = false;
|
||||
// to complete
|
||||
// shutdown with urgent=true so threads are disabled.
|
||||
//mainShutdown(true);
|
||||
g_process.shutdown(true);
|
||||
//g_numCorrupt++;
|
||||
// sleep for now until we make sure this works
|
||||
|
@ -707,9 +707,6 @@ static bool CommandInSync ( char *rec ) {
|
||||
|
||||
static bool printDropDown ( int32_t n , SafeBuf* sb, char *name, int32_t selet ) ;
|
||||
|
||||
extern bool closeAll ( void *state, void (* callback)(void *state) );
|
||||
extern bool allExit ( ) ;
|
||||
|
||||
Parms::Parms ( ) {
|
||||
m_isDefaultLoaded = false;
|
||||
m_inSyncWithHost0 = false;
|
||||
|
13
main.cpp
13
main.cpp
@ -71,17 +71,10 @@
|
||||
#include "SpiderProxy.h"
|
||||
#include "HashTable.h"
|
||||
|
||||
// call this to shut everything down
|
||||
bool mainShutdown ( bool urgent ) ;
|
||||
|
||||
bool registerMsgHandlers ( ) ;
|
||||
bool registerMsgHandlers1 ( ) ;
|
||||
bool registerMsgHandlers2 ( ) ;
|
||||
bool registerMsgHandlers3 ( ) ;
|
||||
// makes a default conf file and saves into confFilename
|
||||
//void makeNewConf ( int32_t hostId , char *confFilename );
|
||||
|
||||
void allExitWrapper ( int fd , void *state ) ;
|
||||
|
||||
void rmTest();
|
||||
|
||||
@ -106,8 +99,6 @@ void dumpClusterdb ( char *coll,int32_t sfn,int32_t numFiles,bool includeT
|
||||
void dumpLinkdb ( char *coll,int32_t sfn,int32_t numFiles,bool includeTree,
|
||||
char *url );
|
||||
|
||||
void exitWrapper ( void *state ) { exit(0); };
|
||||
|
||||
extern bool g_recoveryMode;
|
||||
|
||||
extern int32_t g_recoveryLevel;
|
||||
@ -2984,10 +2975,6 @@ bool registerMsgHandlers3(){
|
||||
return true;
|
||||
}
|
||||
|
||||
bool mainShutdown ( bool urgent ) {
|
||||
return g_process.shutdown(urgent);
|
||||
}
|
||||
|
||||
#include "Rdb.h"
|
||||
#include "Xml.h"
|
||||
|
||||
|
@ -36,11 +36,6 @@ static int32_t s_numRandWords = 0;
|
||||
int32_t getRandomWords(char *buf, char *bufend, int32_t numWords);
|
||||
bool getWords();
|
||||
|
||||
|
||||
bool mainShutdown ( bool urgent ) { return true; }
|
||||
bool closeAll ( void *state , void (* callback)(void *state) ) {return true;}
|
||||
bool allExit ( ) {return true;}
|
||||
|
||||
int main ( int argc , char *argv[] ) {
|
||||
// let's ensure our core file can dump
|
||||
struct rlimit lim;
|
||||
|
@ -4,14 +4,6 @@
|
||||
#include "UCPropTable.h"
|
||||
#include "Unicode.h"
|
||||
|
||||
bool mainShutdown(bool urgent);
|
||||
bool mainShutdown(bool urgent){return true;}
|
||||
// JAB: this program has not been run in a int32_t time and required these...
|
||||
bool closeAll(void*, void(*)(void *)) {return true;}
|
||||
bool allExit(void) {return true;}
|
||||
|
||||
|
||||
|
||||
bool loadUnidataProps(char *s, void (*handler)(u_int32_t, char**, u_int32_t));
|
||||
|
||||
void handleUnicodeData(u_int32_t, char **col, u_int32_t colCount);
|
||||
|
@ -9,16 +9,11 @@
|
||||
#include "Dns.h"
|
||||
#include "Url.h"
|
||||
|
||||
bool allExit ( ) { return true; }
|
||||
bool closeAll ( void *state , void (* callback)(void *state) ) {return true;}
|
||||
|
||||
static void timeWrapper ( int fd , void *state ) ;
|
||||
static void dnsWrapper ( void *state , int32_t ip ) ;
|
||||
|
||||
static int32_t s_max = 10;
|
||||
|
||||
bool mainShutdown ( bool urgent ) { return true; }
|
||||
|
||||
int main ( int argc , char *argv[] ) {
|
||||
|
||||
// init our table for doing zobrist hashing
|
||||
|
@ -8,8 +8,6 @@ void test1 ( int arg ) ;
|
||||
void test2 ( int arg , int removeNegRecs ) ;
|
||||
static int cmp (const void *p1, const void *p2) ;
|
||||
|
||||
bool mainShutdown ( bool urgent ) { return true; }
|
||||
|
||||
main ( int argc , char *argv[] ) {
|
||||
test2 ( atoi ( argv[1] ) , atoi ( argv[2] ) );
|
||||
//test1 ( atoi ( argv[1] ) );
|
||||
|
@ -8,13 +8,6 @@
|
||||
#include "iana_charset.h"
|
||||
#include <iconv.h>
|
||||
|
||||
// fake shutdown for Loop and Parms
|
||||
bool mainShutdown(bool urgent);
|
||||
bool mainShutdown(bool urgent){return true;}
|
||||
bool closeAll ( void *state , void (* callback)(void *state) ) { return true; }
|
||||
bool allExit ( ) { return true; }
|
||||
|
||||
|
||||
#include "Mem.h"
|
||||
|
||||
bool g_recoveryMode = false;
|
||||
|
@ -9,11 +9,6 @@
|
||||
|
||||
static int32_t test_count = 10000;
|
||||
int32_t elapsed_usec(const timeval* tv1, const timeval *tv2);
|
||||
// fake shutdown for Loop and Parms
|
||||
bool mainShutdown(bool urgent);
|
||||
bool mainShutdown(bool urgent){return true;}
|
||||
bool closeAll ( void *state , void (* callback)(void *state) ) { return true; }
|
||||
bool allExit ( ) { return true; }
|
||||
|
||||
int main (int argc, char **argv) {
|
||||
char * filename = argv[1];
|
||||
|
@ -24,10 +24,6 @@ int32_t time_parser(void (*)(char*,int,bool,char*), char*, int, bool doHash=fals
|
||||
//void PrintTokens(UChar **tokens, int num_tokens, int32_t *toklen, bool ascii=false, bool html=false);
|
||||
// Read unicode from a file and parse into words
|
||||
|
||||
// fake shutdown for Loop and Parms
|
||||
bool mainShutdown(bool urgent);
|
||||
bool mainShutdown(bool urgent){return true;}
|
||||
|
||||
bool doFilterSpaces = false;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
@ -3,9 +3,6 @@
|
||||
#include "Unicode.h"
|
||||
|
||||
int32_t elapsed_usec(const timeval* tv1, const timeval *tv2);
|
||||
bool mainShutdown(bool urgent){return true;}
|
||||
bool closeAll ( void *state , void (* callback)(void *state) ){return true;}
|
||||
bool allExit ( ) {return true;}
|
||||
|
||||
int main(int argc, char **argv){
|
||||
if (argc < 2) {
|
||||
|
@ -7,8 +7,6 @@
|
||||
|
||||
static int cmp ( const void *h1 , const void *h2 ) ;
|
||||
|
||||
bool mainShutdown ( bool urgent ) { return true; }
|
||||
|
||||
int32_t speedtest ( int32_t numNodes , bool balanced ) ;
|
||||
int32_t sanitytest () ;
|
||||
|
||||
|
@ -24,8 +24,6 @@ int32_t s_n = 0;
|
||||
|
||||
int64_t s_startTime;
|
||||
|
||||
bool mainShutdown ( bool urgent ) { return true; }
|
||||
|
||||
int main ( int argc , char *argv[] ) {
|
||||
|
||||
// ip/port to ask for the file from
|
||||
|
@ -9,13 +9,6 @@
|
||||
#include "Titledb.h"
|
||||
#include "HttpMime.h"
|
||||
#include "SiteGetter.h"
|
||||
//#include "Tfndb.h"
|
||||
//#include "Msg50.h"
|
||||
//#include "Msg16.h"
|
||||
|
||||
bool mainShutdown ( bool urgent ) { return true; }
|
||||
bool closeAll ( void *state , void (* callback)(void *state) ) {return true;}
|
||||
bool allExit ( ) { return true; }
|
||||
|
||||
bool g_recoveryMode = false;
|
||||
int32_t g_recoveryLevel = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user