summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/extensible.h11
-rw-r--r--include/users.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/include/extensible.h b/include/extensible.h
index ca9c44546..449c7b38a 100644
--- a/include/extensible.h
+++ b/include/extensible.h
@@ -114,17 +114,6 @@ class SimpleExtItem : public LocalExtItem
return static_cast<T*>(get_raw(container));
}
- inline T* getNew(Extensible* container) const
- {
- T* ptr = get(container);
- if (!ptr)
- {
- ptr = new T;
- set_raw(container, ptr);
- }
- return ptr;
- }
-
inline void set(Extensible* container, const T& value)
{
T* ptr = new T(value);
diff --git a/include/users.h b/include/users.h
index 0ce9f59ab..385cd2dfe 100644
--- a/include/users.h
+++ b/include/users.h
@@ -59,7 +59,7 @@ enum RegistrationState {
/* Required forward declaration */
class Channel;
class UserResolver;
-class ConfigTag;
+struct ConfigTag;
/** Holds information relevent to &lt;connect allow&gt; and &lt;connect deny&gt; tags in the config file.
*/