Skip to content

Commit

Permalink
don't handwrite async info, just let the codegenerator make it
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbrix committed Aug 17, 2023
1 parent 5fecadc commit c3c0b50
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 160 deletions.
153 changes: 0 additions & 153 deletions swiftwinrt/Resources/CWinRT/include/CAsyncInfo.h

This file was deleted.

3 changes: 0 additions & 3 deletions swiftwinrt/abi_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ namespace swiftwinrt
static std::set<std::string_view> removed_types = {
"Windows.Foundation.Collections.CollectionChange",
"Windows.Foundation.Collections.IVectorChangedEventArgs",
"Windows.Foundation.IAsyncInfo",
"Windows.Foundation.AsyncStatus"
};
static bool should_write(metadata_type const& type)
{
Expand All @@ -116,7 +114,6 @@ namespace swiftwinrt
// Forced dependencies
w.write(R"^-^(// Header files for imported files
#include "inspectable.h"
#include "CAsyncInfo.h"
#include "EventToken.h"
#include "windowscontracts.h"
)^-^");
Expand Down
2 changes: 0 additions & 2 deletions swiftwinrt/resources.rc
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ WinRTDelegate RESOURCE_TYPE_SWIFT_SUPPORT_FILE "Resources\\Support\\Events\\WinR

RESOURCE_NAME_CWINRT_SHIM_C RESOURCE_TYPE_OTHER_FILE "Resources\\CWinRT\\shim.c"
RESOURCE_NAME_CWINRT_PACKAGE_SWIFT RESOURCE_TYPE_OTHER_FILE "Resources\\CWinRT\\Package.swift"

CAsyncInfo RESOURCE_TYPE_C_INCLUDE_FILE "Resources\\CWinRT\\include\\CAsyncInfo.h"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#pragma once
// Header files for imported files
#include "inspectable.h"
#include "CAsyncInfo.h"
#include "EventToken.h"
#include "windowscontracts.h"
#include "Windows.Foundation.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#pragma once
// Header files for imported files
#include "inspectable.h"
#include "CAsyncInfo.h"
#include "EventToken.h"
#include "windowscontracts.h"
#include "Windows.Foundation.h"
Expand Down

0 comments on commit c3c0b50

Please sign in to comment.