Semaphore: Removed an unneeded function