diff --git a/RayTracer/tools/Threadpool.cpp b/RayTracer/tools/Threadpool.cpp
index be0075c082347cb139473df9b2b9776ccc3e946f..c06b7c246a57ab959c63801aa594b5695dda67c6 100644
--- a/RayTracer/tools/Threadpool.cpp
+++ b/RayTracer/tools/Threadpool.cpp
@@ -6,7 +6,7 @@ Threadpool::Threadpool(size_t n) : alive(true) {
 	// Create the specified number of threads
 	threads.reserve(n);
 	for (int i = 0; i < n; ++i) {
-		threads.emplace_back(std::bind(&Threadpool::threading, this, i));
+		threads.emplace_back(std::bind(&Threadpool::threading, this));
 	}
 }
 
@@ -26,7 +26,7 @@ void Threadpool::queueTask(std::function<void(void)> task) {
 	cv.notify_one();
 }
 
-void Threadpool::threading(int i) {
+void Threadpool::threading() {
 	while (true) {
 		std::unique_lock<std::mutex> lock(m);
 		while (alive && q.empty()) {
diff --git a/RayTracer/tools/Threadpool.h b/RayTracer/tools/Threadpool.h
index 9bdea12f83bbdb97ae567271df5f100515fc789a..20e6ee7de5d0a1ed163637d8cac35b55084c055e 100644
--- a/RayTracer/tools/Threadpool.h
+++ b/RayTracer/tools/Threadpool.h
@@ -16,7 +16,7 @@ class Threadpool {
 	void queueTask(std::function<void(void)> task);
 
    protected:
-	void threading(int i);
+	void threading();
 
    private:
 	std::vector<std::thread> threads;