mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-11 04:38:24 -06:00
don't need this anymore
This commit is contained in:
parent
19fb26dc06
commit
981a01e74d
@ -636,17 +636,6 @@ namespace winrt::Microsoft::Terminal::Settings::Model::implementation
|
|||||||
h.write(ContentArgs());
|
h.write(ContentArgs());
|
||||||
return h.finalize();
|
return h.finalize();
|
||||||
}
|
}
|
||||||
uint32_t GetArgCount()
|
|
||||||
{
|
|
||||||
if (_ContentArgs)
|
|
||||||
{
|
|
||||||
if (const auto newTermArgs = _ContentArgs.try_as<NewTerminalArgs>())
|
|
||||||
{
|
|
||||||
return newTermArgs->GetArgCount();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
winrt::Windows::Foundation::Collections::IVectorView<ArgDescriptor> GetArgDescriptors()
|
winrt::Windows::Foundation::Collections::IVectorView<ArgDescriptor> GetArgDescriptors()
|
||||||
{
|
{
|
||||||
if (_ContentArgs)
|
if (_ContentArgs)
|
||||||
@ -766,10 +755,6 @@ namespace winrt::Microsoft::Terminal::Settings::Model::implementation
|
|||||||
h.write(SplitSize());
|
h.write(SplitSize());
|
||||||
return h.finalize();
|
return h.finalize();
|
||||||
}
|
}
|
||||||
uint32_t GetArgCount()
|
|
||||||
{
|
|
||||||
return gsl::narrow<uint32_t>(GetArgDescriptors().Size());
|
|
||||||
}
|
|
||||||
winrt::Windows::Foundation::Collections::IVectorView<Model::ArgDescriptor> GetArgDescriptors()
|
winrt::Windows::Foundation::Collections::IVectorView<Model::ArgDescriptor> GetArgDescriptors()
|
||||||
{
|
{
|
||||||
static const auto thisArgs = INIT_ARG_DESCRIPTORS(SPLIT_PANE_ARGS);
|
static const auto thisArgs = INIT_ARG_DESCRIPTORS(SPLIT_PANE_ARGS);
|
||||||
@ -874,17 +859,6 @@ namespace winrt::Microsoft::Terminal::Settings::Model::implementation
|
|||||||
h.write(ContentArgs());
|
h.write(ContentArgs());
|
||||||
return h.finalize();
|
return h.finalize();
|
||||||
}
|
}
|
||||||
uint32_t GetArgCount()
|
|
||||||
{
|
|
||||||
if (_ContentArgs)
|
|
||||||
{
|
|
||||||
if (const auto newTermArgs = _ContentArgs.try_as<NewTerminalArgs>())
|
|
||||||
{
|
|
||||||
return newTermArgs->GetArgCount();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
winrt::Windows::Foundation::Collections::IVectorView<Model::ArgDescriptor> GetArgDescriptors()
|
winrt::Windows::Foundation::Collections::IVectorView<Model::ArgDescriptor> GetArgDescriptors()
|
||||||
{
|
{
|
||||||
return _ContentArgs.as<NewTerminalArgs>()->GetArgDescriptors();
|
return _ContentArgs.as<NewTerminalArgs>()->GetArgDescriptors();
|
||||||
@ -1037,10 +1011,6 @@ namespace winrt::Microsoft::Terminal::Settings::Model::implementation
|
|||||||
h.write(winrt::get_abi(_Actions));
|
h.write(winrt::get_abi(_Actions));
|
||||||
return h.finalize();
|
return h.finalize();
|
||||||
}
|
}
|
||||||
uint32_t GetArgCount()
|
|
||||||
{
|
|
||||||
return _Actions.Size();
|
|
||||||
}
|
|
||||||
winrt::Windows::Foundation::Collections::IVectorView<Model::ArgDescriptor> GetArgDescriptors()
|
winrt::Windows::Foundation::Collections::IVectorView<Model::ArgDescriptor> GetArgDescriptors()
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
|
|||||||
@ -23,7 +23,6 @@ namespace Microsoft.Terminal.Settings.Model
|
|||||||
|
|
||||||
interface IActionArgsDescriptorAccess
|
interface IActionArgsDescriptorAccess
|
||||||
{
|
{
|
||||||
UInt32 GetArgCount();
|
|
||||||
Windows.Foundation.Collections.IVectorView<ArgDescriptor> GetArgDescriptors();
|
Windows.Foundation.Collections.IVectorView<ArgDescriptor> GetArgDescriptors();
|
||||||
IInspectable GetArgAt(UInt32 index);
|
IInspectable GetArgAt(UInt32 index);
|
||||||
void SetArgAt(UInt32 index, Object value);
|
void SetArgAt(UInt32 index, Object value);
|
||||||
|
|||||||
@ -217,10 +217,6 @@ public:
|
|||||||
argsMacro(HASH_ARGS); \
|
argsMacro(HASH_ARGS); \
|
||||||
return h.finalize(); \
|
return h.finalize(); \
|
||||||
} \
|
} \
|
||||||
uint32_t GetArgCount() \
|
|
||||||
{ \
|
|
||||||
return gsl::narrow<uint32_t>(GetArgDescriptors().Size()); \
|
|
||||||
} \
|
|
||||||
winrt::Windows::Foundation::Collections::IVectorView<ArgDescriptor> GetArgDescriptors() \
|
winrt::Windows::Foundation::Collections::IVectorView<ArgDescriptor> GetArgDescriptors() \
|
||||||
{ \
|
{ \
|
||||||
static const auto descriptors = INIT_ARG_DESCRIPTORS(argsMacro); \
|
static const auto descriptors = INIT_ARG_DESCRIPTORS(argsMacro); \
|
||||||
@ -249,10 +245,6 @@ private:
|
|||||||
InitListPlaceholder _placeholder; \
|
InitListPlaceholder _placeholder; \
|
||||||
\
|
\
|
||||||
public: \
|
public: \
|
||||||
uint32_t GetArgCount() \
|
|
||||||
{ \
|
|
||||||
return gsl::narrow<uint32_t>(GetArgDescriptors().Size()); \
|
|
||||||
} \
|
|
||||||
winrt::Windows::Foundation::Collections::IVectorView<ArgDescriptor> GetArgDescriptors() \
|
winrt::Windows::Foundation::Collections::IVectorView<ArgDescriptor> GetArgDescriptors() \
|
||||||
{ \
|
{ \
|
||||||
static const auto descriptors = INIT_ARG_DESCRIPTORS(argsMacro); \
|
static const auto descriptors = INIT_ARG_DESCRIPTORS(argsMacro); \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user