summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-06 22:27:51 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-06 22:27:51 +0000
commit71f7e47bcd7b72d7999daa9f061c8850b5a6521b (patch)
tree7302be21da0d2cf757644326d67770a9cd63fca2 /include
parent5a3d1bd4608b46fae23414822ad7512410dd773b (diff)
Remove FindDescriptor wrapper for GetRef, it doesn't do anything useful and in fact is a bit harmful in some ways as we've seen..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11364 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h9
-rw-r--r--include/users.h4
2 files changed, 1 insertions, 12 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 987272752..0511058a4 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -274,7 +274,6 @@ class InspIRCd;
DEFINE_HANDLER1(ProcessUserHandler, void, User*);
DEFINE_HANDLER2(IsNickHandler, bool, const char*, size_t);
DEFINE_HANDLER1(IsIdentHandler, bool, const char*);
-DEFINE_HANDLER1(FindDescriptorHandler, User*, int);
DEFINE_HANDLER1(FloodQuitUserHandler, void, User*);
DEFINE_HANDLER2(IsChannelHandler, bool, const char*, size_t);
DEFINE_HANDLER1(IsSIDHandler, bool, const std::string&);
@@ -390,7 +389,6 @@ class CoreExport InspIRCd : public classbase
ProcessUserHandler HandleProcessUser;
IsNickHandler HandleIsNick;
IsIdentHandler HandleIsIdent;
- FindDescriptorHandler HandleFindDescriptor;
FloodQuitUserHandler HandleFloodQuitUser;
IsChannelHandler HandleIsChannel;
IsSIDHandler HandleIsSID;
@@ -685,13 +683,6 @@ class CoreExport InspIRCd : public classbase
*/
caller1<bool, const char*> IsIdent;
- /** Find a username by their file descriptor.
- * It is preferred to use this over directly accessing the fd_ref_table array.
- * @param socket The file descriptor of a user
- * @return A pointer to the user if the user exists locally on this descriptor
- */
- caller1<User*, int> FindDescriptor;
-
/** Add a dns Resolver class to this server's active set
* @param r The resolver to add
* @param cached If this value is true, then the cache will
diff --git a/include/users.h b/include/users.h
index 8f11d3404..4871ca411 100644
--- a/include/users.h
+++ b/include/users.h
@@ -386,9 +386,7 @@ class CoreExport VisData
/** Holds all information about a user
* This class stores all information about a user connected to the irc server. Everything about a
* connection is stored here primarily, from the user's socket ID (file descriptor) through to the
- * user's nickname and hostname. Use the FindNick method of the InspIRCd class to locate a specific user
- * by nickname, or the FindDescriptor method of the InspIRCd class to find a specific user by their
- * file descriptor value.
+ * user's nickname and hostname.
*/
class CoreExport User : public EventHandler
{