[ox/fs] Cleanup unnecessary constructors in FileAddress

This commit is contained in:
Gary Talent 2023-12-03 19:02:36 -06:00
parent 566b724d36
commit a8db357360
2 changed files with 0 additions and 13 deletions

View File

@ -36,13 +36,6 @@ FileAddress::FileAddress(ox::CRStringView path) noexcept {
m_type = FileAddressType::Path;
}
FileAddress::FileAddress(char *path) noexcept {
auto pathSize = ox_strlen(path) + 1;
m_data.path = new char[pathSize];
memcpy(m_data.path, path, pathSize);
m_type = FileAddressType::Path;
}
FileAddress &FileAddress::operator=(const FileAddress &other) noexcept {
if (this == &other) {
return *this;

View File

@ -59,12 +59,6 @@ class FileAddress {
explicit FileAddress(CRStringView path) noexcept;
template<std::size_t SmallStrSz>
explicit FileAddress(const ox::BasicString<SmallStrSz> &path) noexcept: FileAddress(StringView(path)) {
}
explicit FileAddress(char *path) noexcept;
constexpr FileAddress(ox::StringLiteral path) noexcept;
constexpr ~FileAddress() noexcept;