Remove unused function.

This commit is contained in:
2018-04-12 20:55:15 +02:00
parent eb31ce7d18
commit 018148efef

View File

@@ -6,7 +6,6 @@
#include <chrono> #include <chrono>
#include <thread> #include <thread>
#include "glutils.hpp" #include "glutils.hpp"
#include "Range.hpp"
using namespace fmri; using namespace fmri;
using namespace std; using namespace std;
@@ -21,16 +20,6 @@ static void handleGLError(GLenum error) {
} }
} }
static void rescaleSubImages(vector<float>& textureBuffer, int subImages) {
auto cur = textureBuffer.begin();
const auto increment = textureBuffer.size() / subImages;
while (cur != textureBuffer.end()) {
rescale(cur, cur + increment, 0, 1);
advance(cur, increment);
}
}
void fmri::changeWindowSize(int w, int h) void fmri::changeWindowSize(int w, int h)
{ {
// Prevent a divide by zero, when window is too short // Prevent a divide by zero, when window is too short