mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-21 11:57:44 +00:00
Remove unused utility header
This commit is contained in:
parent
4269321841
commit
b3b1079506
5 changed files with 0 additions and 38 deletions
|
@ -10,7 +10,6 @@
|
|||
|
||||
#include "filecache.h"
|
||||
#include "magic_enum.hpp"
|
||||
#include "utility.h"
|
||||
|
||||
GearView::GearView(GameData *data, FileCache &cache, QWidget *parent)
|
||||
: QWidget(parent)
|
||||
|
|
|
@ -8,14 +8,12 @@ target_sources(novus-common PRIVATE
|
|||
include/novusmainwindow.h
|
||||
include/quaternionedit.h
|
||||
include/settings.h
|
||||
include/utility.h
|
||||
include/vec3edit.h
|
||||
src/aboutdata.cpp
|
||||
src/filecache.cpp
|
||||
src/novusmainwindow.cpp
|
||||
src/quaternionedit.cpp
|
||||
src/settings.cpp
|
||||
src/utility.cpp
|
||||
src/vec3edit.cpp)
|
||||
target_include_directories(novus-common PUBLIC
|
||||
include
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtLogging>
|
||||
#include <physis.hpp>
|
||||
|
||||
namespace utility
|
||||
{
|
||||
physis_Buffer readFromQrc(const QString &path);
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#include "utility.h"
|
||||
|
||||
#include <QFile>
|
||||
|
||||
physis_Buffer utility::readFromQrc(const QString &path)
|
||||
{
|
||||
QFile file(path);
|
||||
file.open(QIODevice::ReadOnly);
|
||||
|
||||
auto contents = file.readAll();
|
||||
|
||||
// TODO: kill me. later.
|
||||
physis_Buffer buffer;
|
||||
buffer.size = contents.size();
|
||||
buffer.data = static_cast<uint8_t *>(malloc(buffer.size));
|
||||
memcpy(buffer.data, contents.data(), buffer.size);
|
||||
|
||||
return buffer;
|
||||
}
|
|
@ -17,7 +17,6 @@
|
|||
#include <physis.hpp>
|
||||
|
||||
#include "mdlpart.h"
|
||||
#include "utility.h"
|
||||
|
||||
MainWindow::MainWindow(GameData *data)
|
||||
: NovusMainWindow()
|
||||
|
|
Loading…
Add table
Reference in a new issue