From 72a3864d91c4714ae21f894a93e85e638d9c77d8 Mon Sep 17 00:00:00 2001 From: Ianos Gnatiuc Date: Sat, 6 May 2006 10:32:05 +0000 Subject: [PATCH] Refactoring! --- golded3/gectrl.cpp | 13 +++++++++++++ golded3/geprot.h | 7 ------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/golded3/gectrl.cpp b/golded3/gectrl.cpp index 30c2025..b9f4219 100644 --- a/golded3/gectrl.cpp +++ b/golded3/gectrl.cpp @@ -35,6 +35,19 @@ int _use_fwd = true; +// ------------------------------------------------------------------ + +static uint32_t msgcount = 0; + + +// ------------------------------------------------------------------ + +static uint32_t getMsgId() +{ + return gtime(NULL)+(msgcount++); +} + + // ------------------------------------------------------------------ bool isuucp(const char *name) { diff --git a/golded3/geprot.h b/golded3/geprot.h index ea5b41a..d709ecc 100644 --- a/golded3/geprot.h +++ b/golded3/geprot.h @@ -435,13 +435,6 @@ void update_addressbook(GMsg* msg, bool reverse = false, bool force = false); void edit_addressbook(GMsg* msg); -// ------------------------------------------------------------------ -// GEMSGID prototypes - -uint32_t getMsgId(); -uint32_t getClassicMsgId(); - - // ------------------------------------------------------------------ // SOFTCR management