Remove this shared pointer nonsense

This commit is contained in:
Justin Scofield
2022-07-24 00:01:31 -04:00
parent fc2eb18212
commit adcb703e4e
2 changed files with 0 additions and 4 deletions

View File

@@ -105,9 +105,6 @@ SDL_Palette* SNESPalette::GetSDL_Palette() {
<< " G:" << color[i].g << " B:" << color[i].b << ")" << std::endl;
}
sdl_palette->colors = color.data();
// store the pointers to free them later
sdl_palettes_.push_back(sdl_palette);
colors_.push_back(color);
return sdl_palette.get();

View File

@@ -40,7 +40,6 @@ class SNESPalette {
int size_ = 0;
std::vector<SNESColor> colors;
std::vector<std::shared_ptr<SDL_Palette>> sdl_palettes_;
std::vector<SDL_Color*> colors_arrays_;
std::vector<std::vector<SDL_Color>> colors_;
};