[ox/fs] Cleanup unnecessary constructors in FileAddress
This commit is contained in:
parent
566b724d36
commit
a8db357360
@ -36,13 +36,6 @@ FileAddress::FileAddress(ox::CRStringView path) noexcept {
|
|||||||
m_type = FileAddressType::Path;
|
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 {
|
FileAddress &FileAddress::operator=(const FileAddress &other) noexcept {
|
||||||
if (this == &other) {
|
if (this == &other) {
|
||||||
return *this;
|
return *this;
|
||||||
|
@ -59,12 +59,6 @@ class FileAddress {
|
|||||||
|
|
||||||
explicit FileAddress(CRStringView path) noexcept;
|
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(ox::StringLiteral path) noexcept;
|
||||||
|
|
||||||
constexpr ~FileAddress() noexcept;
|
constexpr ~FileAddress() noexcept;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user