]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: stream-int: remove obsolete function si_applet_call()
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Sep 2015 08:12:49 +0000 (10:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Sep 2015 11:42:08 +0000 (13:42 +0200)
This one is not used anymore and is bogus due to the way applets
now work. Remove it instead of fixing it before someone finds it
fun to use it.

include/proto/stream_interface.h

index 8c7a950766d5fa21176717e79fd68d4a67e45f5d..47acb76060057ddcbae91ef41e4c72cbfb376c15 100644 (file)
@@ -221,21 +221,6 @@ static inline struct appctx *si_appctx(struct stream_interface *si)
        return objt_appctx(si->end);
 }
 
-/* Call the applet's main function when an appctx is attached to the stream
- * interface. Returns zero if no call was made, or non-zero if a call was made.
- */
-static inline int si_applet_call(struct stream_interface *si)
-{
-       struct appctx *appctx;
-
-       appctx = si_appctx(si);
-       if (appctx) {
-               appctx->applet->fct(appctx);
-               return 1;
-       }
-       return 0;
-}
-
 /* call the applet's release function if any. Needs to be called upon close() */
 static inline void si_applet_release(struct stream_interface *si)
 {