]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
processor: remove the now unused get_threads() method again
authorMartin Willi <martin@revosec.ch>
Thu, 18 Jul 2013 09:42:59 +0000 (11:42 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 18 Jul 2013 14:00:31 +0000 (16:00 +0200)
src/libstrongswan/processing/processor.c
src/libstrongswan/processing/processor.h

index f193b8d5e1de9cbbf3bb38d5f60b5dd1b4da1332..e00216e07d62a483871aa032d8e2a92b251e5243 100644 (file)
@@ -462,12 +462,6 @@ METHOD(processor_t, set_threads, void,
        this->mutex->unlock(this->mutex);
 }
 
-METHOD(processor_t, get_threads, u_int,
-       private_processor_t *this)
-{
-       return this->desired_threads;
-}
-
 METHOD(processor_t, cancel, void,
        private_processor_t *this)
 {
@@ -539,7 +533,6 @@ processor_t *processor_create()
                        .queue_job = _queue_job,
                        .execute_job = _execute_job,
                        .set_threads = _set_threads,
-                       .get_threads = _get_threads,
                        .cancel = _cancel,
                        .destroy = _destroy,
                },
index c691cfb609aa66875f222c12c9a7fcd778247d64..f96530e5409fdbf75b7c41a749ec538c83861c22 100644 (file)
@@ -97,16 +97,6 @@ struct processor_t {
         */
        void (*set_threads)(processor_t *this, u_int count);
 
-       /**
-        * Get the number of threads set with set_threads().
-        *
-        * This does not actually reflect the number of threads currently active,
-        * but the number of threads targeted.
-        *
-        * @return                              number of desired threads
-        */
-       u_int (*get_threads)(processor_t *this);
-
        /**
         * Sets the number of threads to 0 and cancels all blocking jobs, then waits
         * for all threads to be terminated.